package com_djm_2025_06_09.myString.StringDemo;

import java.util.Scanner;

/**
 * 键盘录入一个字符串，统计其中小写字母、大写字母、以及数字的个数
 *
 * @author dengjiangming
 * @version 1.0.0
 * @date 2025-06-10
 */
public class StringDemo6 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String input = sc.nextLine();

        int bigNumber = 0;
        int smallNumber = 0;
        int numberCount = 0;

        for (int i = 0; i < input.length(); i++) {
            char c = input.charAt(i);

            if(c >= 'a' && c <= 'z') {
                smallNumber++;
            } else if (c >= 'A' && c <= 'Z') {
                bigNumber++;
            } else if (c >= '0' && c <= '9') {
                numberCount++;
            }
        }

        System.out.println("小写字母的个数："+smallNumber);
        System.out.println("大写字母的个数："+bigNumber);
        System.out.println("数字的个数："+numberCount);
    }

}
